// components/hlText/hl-text.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    content: {
      type: String,
      value: ''
    },
    fontSize: {
      type: Number,
      value: 32
    },
    textColor: {
      type: String,
      value: '#333333'
    },
    lines: {
      type: Number,
      value: 1,
      observer(newVal, oldVal, changedPath) {
        let tmpLineStyle = ""
        if (newVal == 1) {
          tmpLineStyle = "one-line"; 
        } else if (newVal == 2) {
          tmpLineStyle = "two-line"; 
        }
        this.setData({
          linesClassStyle: tmpLineStyle
        });
      }
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    linesClassStyle: 'one-line'
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})